package math;

public class Math2 
{
    //rewritten arcTangent function with a range of (0-2PI r) or(0-360 degrees):
    public static double atan(double x, double y)
    {
    	return (Math.atan(y/x))+(x<0?PI:TAU)%(TAU);
    }
    public static final double E =  2.718281828459045d;
    public static final double P2 = 2.295587149392638d;
    public static final double PI = 3.141592653589793d;
    public static final double TAU= 6.283185307179586d;
    public static final double PHI= 1.618033988749894d;
    public static final double ROOT2 = 1.414213562373095d;
    public static final double ROOT3 = 1.732050807568877d;
    public static final double ROOT5 = 2.236067977499789d;
    
}
 